#ifndef QUIZ_H
#define QUIZ_H

#include <QObject>
#include <QList>
#include <QFile>
#include <QTextStream>
#include <QRegExp>
#include <QDataStream>
#include <QVector>

#include "question.h"

class Quiz : public QObject
{
    Q_OBJECT
public:
    QObjectList questions;
    QList<Question*> activeQuestions;
    explicit Quiz(QObject *parent = 0);
    ~Quiz();
    void addQuestion(QString, QList<QString>, QList<bool>, int, int, int);
    int loadFromFile(QFile*, int, int, bool);
    int saveToFile(QFile* file);
    Question* getRandom();
    void removeQuestion(Question*);

private:
    void cleanup();

signals:

public slots:

};

#endif // QUIZ_H
